package pri.damai.xiaowu.auth.manager.mock;

import lombok.extern.slf4j.Slf4j;
import pri.damai.xiaowu.common.core.enums.ResultCommonEnum;
import pri.damai.xiaowu.common.core.vo.ResultVO;
import pri.damai.xiaowu.usercenter.client.UserCenterDubboClient;
import pri.damai.xiaowu.usercenter.common.dto.LoginDTO;
import pri.damai.xiaowu.usercenter.common.dto.UserDTO;

/**
 *
 * @Desc
 * @Author yxf
 * @Date 2022/3/6 13:15
 * 但行好事，莫问前程。
 */
@Slf4j
public class UserCenterDubboClientMock implements UserCenterDubboClient {
    @Override
    public ResultVO<UserDTO> getUser(LoginDTO loginDTO) {
        log.error("【Dubbo】UserCenterClientMock。入参:{}",loginDTO);
        return ResultVO.error(ResultCommonEnum.AUTHORIZED_FAIL);
    }
}
